//
//  globle_defined.h
//  MClient
//
//  Created by  史正烨 on 10-10-18.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

//#import <UIKit/UIKit.h>
#import "MCTableViewController.h"
#import "MCWebViewController.h"
#import "MCNavigationController.h"
#import "MCErrorManagement.h"

#ifdef DEBUG
#define MCLog    NSLog
#else
#define MCLog    
#endif

#define RGBCOLOR(r,g,b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]

#define HSVCOLOR(h,s,v) [UIColor colorWithHue:h saturation:s value:v alpha:1]
#define HSVACOLOR(h,s,v,a) [UIColor colorWithHue:h saturation:s value:v alpha:a]

#define RGBA(r,g,b,a) r/255.0, g/255.0, b/255.0, a

//ToolBar高度
#define nToolBarHeightPortrait           36
#define nToolBarHeightLandscape          26
#define nToolBarHeight   36//self.width > self.height ? nToolBarHeightLandscape : nToolBarHeightPortrait

//navigationBar高度
#define navigationBarHeight     44
//picker高度
#define nPickerHeight           216
//picker高度
#define nTabBarHeight           49
//withFormButtonBar高度				
#define nWithFormButtonsBarHeight		44
//imageOfCell默认宽度和高度
#define nImageWidthOfCell		57
#define nImageHeightOfCell		57

//表单页面label左边的间隙大小
#define nFormLabelLeftSpace		10
#define nFormLabelWidth			100

#define nTableCellAutoresizingMask    UIViewAutoresizingFlexibleLeftMargin|\
									  UIViewAutoresizingFlexibleRightMargin|\
									  UIViewAutoresizingFlexibleWidth

#define nMCViewAutoresizingMask    UIViewAutoresizingFlexibleLeftMargin|\
								   UIViewAutoresizingFlexibleRightMargin|\
								   UIViewAutoresizingFlexibleTopMargin|\
                                   UIViewAutoresizingFlexibleBottomMargin|\
								   UIViewAutoresizingFlexibleWidth

#define nCheckCodeAutoresizingMask	UIViewAutoresizingFlexibleLeftMargin|\
									UIViewAutoresizingFlexibleRightMargin
									

